/*!
 * Copyright 2019 WeBank
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
@import '@dataspherestudio/shared/common/style/variables.scss';
.we-tag {
    .we-tag-content {
        // background-color: #ecf5ff;
        @include bg-color(#ecf5ff, $dark-workspace-body-bg-color);
        display: inline-block;
        height: 32px;
        padding: 0 10px;
        line-height: 30px;
        color: #409eff;
        // @include font-color(#409eff, $dark-workspace-title-color);
        border: 1px solid #d9ecff;
        @include border-color($border-color-base, $dark-border-color-base);
        border-radius: 4px;
        white-space: nowrap;
        margin-right: 10px;
        margin-bottom: 4px;
        max-width: 100%;
        position: relative;
        .we-input-label {
            display: inline-block;
            max-width: 100%;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            padding-right: 10px;
        }
        .we-tag-content-close {
            cursor: pointer;
            font-size: 16px;
            border-radius: 50%;
            text-align: center;
            height: 16px;
            width: 16px;
            line-height: 16px;
            vertical-align: middle;
            position: absolute;
            top: 8px;
            right: 2px;
            &:hover {
                // color: #fff;
                @include font-color($active-menu-item, $dark-active-menu-item);
                background-color: #409eff;
                // @include bg-color($primary-color, $dark-active-menu-item);
            }
        }
    }
    .we-tag-add-btn {
        display: inline-block;
        height: 32px;
        line-height: 30px;
        padding: 0 10px;
        border: 1px solid #dcdfe6;
        @include border-color($border-color-base, $dark-border-color-base);
        border-radius: 3px;
        // background: #fff;
        @include bg-color($workspace-body-bg-color, $dark-workspace-body-bg-color);
        white-space: nowrap;
        // color: #606266;
        @include font-color(#606266, $dark-workspace-title-color);
        font-weight: 500;
        cursor: pointer;
        &:hover {
            // color: #409eff;
            @include font-color($primary-color, $dark-primary-color);
            // border-color: #c6e2ff;
            @include border-color(#c6e2ff, $dark-border-color-base);
            // background-color: #ecf5ff;
            @include bg-color($active-menu-item, $dark-active-menu-item);
        }
    }
    .we-tag-add-input {
        height: 32px;
        line-height: 30px;
        border: 1px solid #409eff;
        width: 80px;
        border-radius: 4px;
        padding: 0 10px;
        // color: #606266;
        @include font-color(#606266, $dark-text-color);
        @include border-color($border-color-base, $dark-border-color-base);
        @include bg-color($workspace-body-bg-color, $dark-workspace-body-bg-color);
    }
}
